<?php
namespace app\common\validate;

/**
 * MaterialValidate
 */
class MaterialValidate extends BaseValidate
{
	protected $rule = [
	    'material_id' => 'require',
        'material_ids' => 'require|isArray',
    ];
    
    protected $message=[
        'material_id' => '物料ID必填',
        'material_ids' => 'material_id的集合必须为数组，并且数组不为空',
		//'account'  => '账号是必须的且不能为空.',
		//'password' => '密码是必须的且不能为空.'
    ];

    protected $scene = [
        //'lists' => [],
        'detail' => ['material_id'],
        'async' => ['material_ids'],
    ];
}